// store.js
import { defineStore } from 'pinia'

export const userStore = defineStore('StoreIndex', {
  state: () => ({
    projectMenus: [],
    code:'',
  }),
  getters: {
    getProjectMenus() {
      return this.projectMenus
    }
  },
  actions: {
    setProjectMenus(menus) {
      this.projectMenus = menus
    },
    setCode(code) {
      this.code = code
    }
  }
})
